package com.wanghlme.leetcodecn;

/**
 * <p>剑指 Offer 58 - II. 左旋转字符串</p>
 *
 * @author wanghlme
 * @version 1.0
 */
public class LC_JZ58 {
    public static void main(String[] args) {
        System.out.println(new Solution().reverseLeftWords("hello", 2));
    }

    static class Solution {
        public String reverseLeftWords(String s, int n) {
            return s.substring(n, s.length()) + s.substring(0, n);
        }
    }
}
